﻿package chapter_04;

public class Hui_4_1_Exa_01_Dog extends Hui_4_1_Exa_01_Pet {
	private String strain;//品种
	
	/**
	 * 		有参构造方法
	 * @param name		昵称
	 * @param strain		品种
	 */
	public Hui_4_1_Exa_01_Dog(String name,String strain){
		super(name);
		this.strain = strain;
	}
	
	public String getStrain(){
		return strain;
	}
	
	public void print(){
		System.out.println("我的品种是："+strain);
	}
}
